refactor(conversations): separate search results and conversations#10051
refactor(conversations): separate search results and conversations#10051
Conversation
a80f236 to
8a52bb0
Compare
Antreesy
left a comment
There was a problem hiding this comment.
Nothing blocking, just a couple of remarks to improve
ca9303c to
4373318
Compare
|
|
4373318 to
7f27d26
Compare
|
Rebased onto master |
|
/backport to stable27 |
|
There is a regression. On the first load from a conversation page, before there was the current conversation in the list together with loading. Now there is no conversation before loading. Actually, I don't know if it was intended before :D @Antreesy @DorraJaouad @marcoambrosini @nickvergessen What do you think?
|
Probably not, as when you join a room, you fetch it separately from others. That's why it ended up alone in the store and in the list |
The cache works only after the first open :D |
I think it's a nice to have if in the content there's that conversation opened |
|
Both behaviours are fine to me, so whatever is better to do/maintain |
I checked that it is possible to make it work with both this loading and virtual scrolling. Though, it is noticeable only after re-login when the new cache feature doesn't work, I decided to fix it. So no regression now |
- Fix "// TODO": instead of mutating the getter result as computed side effect, move sorting conversations into conversationsList getter - Divide storing all conversations in the LeftSidebar into: "All conversations list" + "Filtered conversations list" + "Search result conversations list" It allows to easily add v-show (KeepAlive) or VirtualScrolling in future - Organize rendering in LeftSIdebar and reduce duplications Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
ceb5c26 to
25d200e
Compare
|
Rebased onto master and fixup. |
|
/backport to stable27 |


☑️ Resolves
LeftSidebar refactoring
🖼️ Screenshots
No visual changes
🚧 Tasks
conversationsListgetterv-show(KeepAlive) orVirtualScrollingin futureLeftSIdebar🏁 Checklist
docs/has been updated or is not required